//
//  DYJReadCollectionViewCell.m
//  Piece
//
//  Created by dllo on 16/6/7.
//  Copyright © 2016年 Northeast Dianli University. All rights reserved.
//

#import "DYJReadCollectionViewCell.h"

@implementation DYJReadCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        self.readTableView = [[DYJReadTableView alloc] initWithFrame:CGRectMake(10, 10, ScreenWidth - 20, ScreenHeight - 170 - 64 - 49)];
        [self.contentView addSubview:_readTableView];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    //self.readTableView.frame = self.bounds;
}
- (void)setShortModel:(DYJShortModel *)shortModel
{
    if (_shortModel != shortModel) {
        _shortModel = shortModel;
        self.readTableView.shortModel = _shortModel;

    }
}
- (void)setSerialModel:(DYJSerialModel *)serialModel
{
    if (_serialModel != serialModel) {
        _serialModel = serialModel;
        self.readTableView.serialModel = _serialModel;
    }
}
- (void)setQuestionModel:(DYJQuestionModel *)questionModel
{
    if (_questionModel != questionModel) {
        _questionModel = questionModel;
        self.readTableView.questionModel = _questionModel;
    }
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
